package com.PVZ.event;

import com.PVZ.model.Entity;
import com.PVZ.model.emuns.EventType;
import lombok.Getter;
import lombok.Setter;

/**
 * Created by @Author: kabuda on @Date: 2021/5/25 17:26
 */
@Getter
@Setter
public class ClickGettableEvent extends Event{
    Entity gettableEntity;

    public ClickGettableEvent(Entity clickEntity) {
        eventType = EventType.GET;
        clickEntity.setCurSpeed(clickEntity.getCurSpeed()*3);
        this.gettableEntity = clickEntity;
    }
}
